<h1>Booking confirmation</h1>
<form method="POST">
<input type="hidden" name="hotel_id" value="<?php echo $hotel["extra"]["hotel_id"] ?>">
<input type="hidden" name="arrival_date" value="<?php echo $results["arrival_date"] ?>">
<input type="hidden" name="nights" value="<?php echo $results["nights"] ?>">
<input type="hidden" name="rooms_count" value="<?php echo $results["rooms_count"] ?>">
<b>Hotel: <?php echo $hotel["extra"]["name"]?></b><br>
<b>Check-in: <?php echo date("d/m/Y", $results["arrival_date"])?></b><br>
<b>Check-out: <?php echo date("d/m/Y", $results["arrival_date"]+$results["nights"]*86400)?></b><br>
<b>Nights: <?php echo $results["nights"]?></b><br>
<b>Rooms: <?php echo $results["rooms_count"]?></b><br>
<hr>
<?php $total = 0; ?>
<?php for($i=1; $i<=$results["rooms_count"]; $i++): ?>
  <b>Room <?php echo $i?> type: <?php echo $hotel["room_sets"][1]["rooms"][$room_ids[$i]]["Type"]?> (<?php echo $hotel["room_sets"][1]["rooms"][$room_ids[$i]]["Board"]?>)</b><br>
  <b>Adults: <?php echo $hotel["room_sets"][$i]["adults"]?></b><br>
  <b>Children: <?php echo $hotel["room_sets"][$i]["children"]?></b><br>
  <b>Room rate: <?php echo $hotel["currency"]," ",$hotel["room_sets"][$i]["rooms"][$room_ids[$i]]["Rate"]?></b><br>
  <?php $total+=$hotel["room_sets"][$i]["rooms"][$room_ids[$i]]["Rate"] ?><br>
  <input type="hidden" name="room_id_<?php echo $i?>" value="<?php echo $room_ids[$i] ?>">
<?php endfor ?>
<hr>
<b>TOTAL: <?php echo $hotel["currency"]," ",$total?></b><br>
<br><br>
<label>Title:</label><input type="text" name="customer_title"><br>
<label>Firstname:</label><input type="text" name="customer_firstname"><br>
<label>Lastname:</label><input type="text" name="customer_lastname"><br>
<label>E-mail:</label><input type="text" name="email"><br>
<br><br>
<input type="hidden" name="book_confirm" value="1">
<input type="submit" value="Confirm booking">
</form>
<?php // var_dump($hotel) ?>